package com.ryder.subject.domain.convert;

import com.ryder.subject.domain.entity.SubjectCategoryBO;
import com.ryder.subject.infra.basic.entity.SubjectCategory;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 描述: 标签BO转换
 *
 * @author Ryder
 * @version 1.0
 * @date 2025/02/03
 * @since 1.0 // 版本号，指明从哪个版本开始
 */
@Mapper
public interface SubjectCategoryConvert {

    SubjectCategoryConvert INSTANCE = Mappers.getMapper(SubjectCategoryConvert.class);

    /**
     * BO 转换为实体
     * @param subjectCategoryBO
     * @return
     */
    SubjectCategory convertBoToCategory(SubjectCategoryBO subjectCategoryBO);

    /**
     * 实体集合转换为BO
     * @param categoryList
     * @return
     */
    List<SubjectCategoryBO> convertBoToCategory(List<SubjectCategory> categoryList);
}
